package com.niiwoo.civet.trade.service.configure;



import com.niiwoo.civet.trade.dto.response.OcrPortraitAuthConfigResponseDTO;
import com.niiwoo.civet.trade.dto.response.ProjectIntroduceDTO;
import com.niiwoo.civet.trade.enums.TradeConfigEnum;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 交易配置参数
 */
public interface TradeConfigDubboService {

    /**
     *
     * @param enumList 枚举列表
     * @return
     */
    Map<String,String> selectTradeConfigByEmuns(List<TradeConfigEnum> enumList);

    OcrPortraitAuthConfigResponseDTO queryOcrPortraitConfig();
    
    OcrPortraitAuthConfigResponseDTO queryR360PortraitConfig();

    String selectDeadlineByAmount(BigDecimal amount);

    /**
     * 通过借款期限查找配置信息
     * @param loanTerm
     * @return
     */
    default Byte rateConfig(int loanTerm, Byte configType){
        throw new UnsupportedOperationException("");
    };

    default String selectTradeConfigByEmun(TradeConfigEnum configEnum){
        throw new UnsupportedOperationException("");
    };

    default ProjectIntroduceDTO getProjectIntroduce() {
        return null;
    }
}
